#ifndef _DEMUX_H_
#define _DEMUX_H_

#include "def.h"
#include "porting.h"
#include "_video.h"

VIDEO_ERROR demux_init();
VIDEO_ERROR demux_free();
VIDEO_ERROR demux_file_head();
VIDEO_ERROR demux_next_block();

VIDEO_ERROR mux_file_head();
VIDEO_ERROR mux_file_end();
VIDEO_ERROR mux_next_block_a(FRAME* frame);
VIDEO_ERROR mux_next_block_v(FRAME* frame);
VIDEO_ERROR mux_video_pkg(void* buff, u32 len);
VIDEO_ERROR mux_ensure_alignment();

#endif
